import {PageResData, ResponseData} from "@/types/common";
import {ShippingPlanVO} from "@/apiNew/shippingPlan";

export const MockQueryShippingPlan = async (params: any): Promise<ResponseData<PageResData<ShippingPlanVO>>> => {
  return {
    Code: 1,
    ErrorCode: '200',
    Result: {
      Items: [
        {
          "ShippingPlanId": 12,
          "Name": "随车计划2-11111",
          "OperateTime": "2021-01-25 11:08:31",
          "OperateUserId": 2,
          "OperateUserName": "管理员",
          "ShippingPlanDetails": [
            {
              "ShippingPlanDetailId": 8,
              "ShippingPlanId": 12,
              "SrcShippingCompanyId": 1,
              "ShippingCompanyId": 11,
              "ShopId": 7,
              "Name": "随车计划1-杭州",
              "StartTime": "2021/1/20 0:00:00",
              "EndTime": "2021/1/24 0:00:00",
              "Remark": "随车计划1-杭州",

            },
            {
              "ShippingPlanDetailId": 12,
              "ShippingPlanId": 12,
              "SrcShippingCompanyId": 1,
              "ShippingCompanyId": 11,
              "ShopId": 5,
              "Name": "随车计划1-杭州",
              "StartTime": "2021/1/20 0:00:00",
              "EndTime": "2021/1/24 0:00:00",
              "Remark": "随车计划1-杭州",

            }
          ]
        },
        {
          "ShippingPlanId": 14,
          "Name": "随车计划2-1",
          "OperateTime": "2021-01-25 11:17:25",
          "OperateUserId": 2,
          "OperateUserName": "管理员",
          "ShippingPlanDetails": [
            {
              "ShippingPlanDetailId": 13,
              "ShippingPlanId": 14,
              "SrcShippingCompanyId": 1,
              "ShippingCompanyId": 11,
              "ShopId": 6,
              "Name": "随车计划1-杭州",
              "StartTime": "2021/1/20 0:00:00",
              "EndTime": "2021/1/24 0:00:00",
              "Remark": "随车计划1-杭州",

            },
            {
              "ShippingPlanDetailId": 14,
              "ShippingPlanId": 14,

              "SrcShippingCompanyId": 1,
              "ShippingCompanyId": 11,
              "ShopId": 8,

              "Name": "随车计划1-东湾",
              "StartTime": "2021/1/20 0:00:00",
              "EndTime": "2021/1/24 0:00:00",
              "Remark": "随车计划1-杭州",

              // "ShopVo": {
              //   "ShopId": 8,
              //   "Name": "sddfdf"
              // },
              // "SrcShippingCompanyVo": {
              //   "Name": "圆通快递",
              //   "ShippingCompanyID": 1
              // },
              // "ShippingCompanyVo": {
              //   "Name": "物流",
              //   "ShippingCompanyID": 11
              // }

            }
          ]
        }
      ],
      TotalNum: 2,
      CurrentPage: 1,
      TotalPageCount: 1,
    },
    Message: 'SUCCESS '
  }
}
